<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        
        let a=['1','2','3','4','5']
        console.log(a)
        a.forEach(function(e) {
            console.log(Number(e)+1)
        })


        let b = 70
        if(b%2==0){
            console.log('是偶数')
            if(b>40&&b<=100)
                console.log('大于40小于等于100')
            else{
                console.log('不在区间中')
            }
        }
        else {
            consloe.log('是奇数')
            if(b>40&&b<=100)
                console.log('大于40小于等于100')
            else{
                console.log('不在区间中')
            }
        }

        let month =8
        if(month==12||month==1||month==2)
        {
            console.log('春天！')
        }
        else if(month>2&&month<=5)
        {
            console.log('夏天！')
        }
        else if(month>5&&month<=8)
        {
            console.log('秋天！')
        }
        else if(month>8&&month<=11)
        {
            console.log('冬天！')
        }
        else{
            console.log('月份错误重新输入')
        }
    </script>
</body>
</html>